package com.example.redislock.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 分布式锁配置属性
 */
@ConfigurationProperties(prefix = "redis-lock")
public class RedisLockProperties {

    /**
     * 默认锁超时时间(毫秒)
     */
    private long defaultLockTimeout;

    /**
     * 看门狗续期间隔(毫秒)
     */
    private long watchDogInterval;

    public long getDefaultLockTimeout() {
        return defaultLockTimeout;
    }

    public void setDefaultLockTimeout(long defaultLockTimeout) {
        this.defaultLockTimeout = defaultLockTimeout;
    }

    public long getWatchDogInterval() {
        return watchDogInterval;
    }

    public void setWatchDogInterval(long watchDogInterval) {
        this.watchDogInterval = watchDogInterval;
    }
}
